package com.chiry;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class TestKafkaApplication {
    public static void main(String[] args) {
        SpringApplication.run(TestKafkaApplication.class, args);
        System.out.println("test kafka application is started.....");
    }

    //test application .
    @RequestMapping("/test/{log}")
    public String testmethod(@PathVariable("log") String log){
        Logger logger = LoggerFactory.getLogger(TestKafkaApplication.class);
        logger.info("success ...[{}]",log);
        return "success!";
    }
}
